home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-02-25 | 2.1 KB | 81 lines | [TEXT/MPS ] |
- # File: test.68K.CW.make
- # Target: test.68K.CW
- # Sources: test.c
-
- Makefile = :MPW_Support:test.68K.CW.make
-
- object_folder = ":MPW_Support:objects_68K:"
- fsource = test.f
-
- csource = F2Cmain.c
-
- fobjs = {object_folder}test.f.o
-
- cobjs = {object_folder}F2Cmain.c.o
-
-
- objects = {fobjs} ∂
- {cobjs}
-
- Segment.1 = "{object_folder}F2Cmain.c.o" ∂
- "{object_folder}test.f.o"
-
- Segment.2 = "{MW68KLibraries}"MPWRuntime.68K.lib ∂
- "{MW68KLibraries}"MacOS.lib ∂
- "{MW68KLibraries}MPW ANSI (4i/8d) C.68K.Lib" ∂
- "{MW68KLibraries}MathLib68K (4i/8d).Lib" ∂
- "{MW68KLibraries}ToolLibs.o"
-
- Segment.3 = "{F2CLibraries}"libF77.68K ∂
- "{F2CLibraries}"libI77.68K
-
- C = MWC68K
- COptions = -model far -align mac68k -intsize 4 -dsize 64 -d MPW_CW_F2C -w off
-
- F2C = f2c
- F2COptions = -f -!i8 -A -a -E -ec -!R -r8 -w66
-
- Link = MWLink68K
- LinkOptions = -d -c 'MPS ' -t 'MPST' -fastlink off -mpwtool -model far -intsize 4
- test.68K.CW ƒƒ {Makefile} {Objects}
- {Link} {LinkOptions} ∂
- -sb "Your Code" -ra "Your Code"=resPreload,resProtected,resLocked ∂
- {Segment.1} ∂
- -sb "CW libs" -ra "CW libs"=resProtected,resPurgeable ∂
- {Segment.2} ∂
- -sb "F2C libs" -ra "F2C libs"=resProtected,resPurgeable ∂
- {Segment.3} ∂
- -o test.68K.CW
-
- .f.o ƒ .f
- {F2C} {F2COptions} {Default}.f #compile the fortran and then compile the resulting C file.
- setfile -t "TEXT" -c "MPS " {default}.c
- {C} {default}.c {COptions} ∂
- -o {targDir}{default}.f.o
-
-
- .c.o ƒ .c
- {C} {default}.c {COptions} ∂
- -o {targDir}{default}.c.o
-
-
- # If your FORTRAN code has common blocks add common.c.o to the cobjs list
- # and then this rule should take care of it
- common.c ƒ {fobjs}
- setfile -t "TEXT" -c "MPS " ?+_com.c
- catenate ?+_com.c > {Targ} #This puts all the common block files into one file for compiling.
- #The wild card lets us add common blocks to the fortran code
- #without having to change the makefile! The common block files all
- #end with _com.c
-
- {objects} ƒ {Makefile} #do a full rebuild if the makefile changes
-
- {object_folder} ƒ :
-
- {object_folder}test.f.o ƒ test.f
-
- {object_folder}F2Cmain.c.o ƒ F2Cmain.c
-
- # makefile end
-
-